package com.ccrfid.rmc6.entity.business.nightpatrol;

import javax.persistence.*;
import java.sql.Date;

@Entity
@Table(name = "v_np_group")
public class NpGroupViewEntity {
    private Long groupId;
    private String groupName;
    private String groupMembers;
    private String groupMembersId;
    private String patrolPlace;
    private String patrolPlaceId;
    private Date startTime;
    private Date endTime;
    private String startTimePoint;
    private String endTimePoint;

    private int patrolTimeLength;

    @Id
    @Column(name = "group_id", nullable = false)
    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    @Basic
    @Column(name = "group_name", nullable = false, length = 45)
    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    @Basic
    @Column(name = "group_members", nullable = false, length = 45)
    public String getGroupMembers() {
        return groupMembers;
    }

    public void setGroupMembers(String groupMembers) {
        this.groupMembers = groupMembers;
    }

    @Basic
    @Column(name = "group_members_id", nullable = false, length = 45)
    public String getGroupMembersId() {
        return groupMembersId;
    }

    public void setGroupMembersId(String groupMembersId) {
        this.groupMembersId = groupMembersId;
    }

    @Basic
    @Column(name = "patrol_place", nullable = false, length = 45)
    public String getPatrolPlace() {
        return patrolPlace;
    }

    public void setPatrolPlace(String patrolPlace) {
        this.patrolPlace = patrolPlace;
    }

    @Basic
    @Column(name = "patrol_place_id", nullable = false, length = 45)
    public String getPatrolPlaceId() {
        return patrolPlaceId;
    }

    public void setPatrolPlaceId(String patrolPlaceId) {
        this.patrolPlaceId = patrolPlaceId;
    }

    @Basic
    @Column(name = "start_time", nullable = false)
    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }


    @Basic
    @Column(name = "end_time", nullable = false)
    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    @Basic
    @Column(name = "start_time_point", nullable = false, length = 20)
    public String getStartTimePoint() {
        return startTimePoint;
    }

    public void setStartTimePoint(String startTimePoint) {
        this.startTimePoint = startTimePoint;
    }

    @Basic
    @Column(name = "end_time_point", nullable = false, length = 20)
    public String getEndTimePoint() {
        return endTimePoint;
    }

    public void setEndTimePoint(String endTimePoint) {
        this.endTimePoint = endTimePoint;
    }

    @Basic
    @Column(name = "patrol_time_length")
    public Integer getPatrolTimeLength() {
        return patrolTimeLength;
    }

    public void setPatrolTimeLength(Integer patrolTimeLength) {
        this.patrolTimeLength = patrolTimeLength;
    }
//
//    @Basic
//    @Column(name = "patrol_time_interval")
//    public Integer getPatrolTimeInterval() {
//        return patrolTimeInterval;
//    }
//
//    public void setPatrolTimeInterval(Integer patrolTimeInterval) {
//        this.patrolTimeInterval = patrolTimeInterval;
//    }

}
